package com.tjsinfo.tjsoa.efile.bo;

import java.util.List;

import com.tjsinfo.tjsoa.Dao.IHibernateDao;
import com.tjsinfo.tjsoa.Dao.IQbcDao;
import com.tjsinfo.tjsoa.efile.dao.EfileDao;
import com.tjsinfo.tjsoa.efile.dao.EfileDaoException;
import com.tjsinfo.tjsoa.efile.dao.IEfileDao;
import com.tjsinfo.tjsoa.efile.vo.Efile;

public class EfileManageImpl implements EfileManage {
	private IHibernateDao hibernateDao;
	private IQbcDao qbcDao;	
	private IEfileDao efileDao;
	
	public IHibernateDao getHibernateDao() {
		return hibernateDao;
	}

	public void setHibernateDao(IHibernateDao hibernateDao) {
		this.hibernateDao = hibernateDao;
	}

	public IQbcDao getQbcDao() {
		return qbcDao;
	}

	public void setQbcDao(IQbcDao qbcDao) {
		this.qbcDao = qbcDao;
	}

	public IEfileDao getEfileDao() {
		return efileDao;
	}

	public void setEfileDao(IEfileDao efileDao) {
		this.efileDao = efileDao;
	}

	public void delete(Efile persistentInstance) {
		efileDao.delete(persistentInstance);
	}

	public Efile findById(Integer id) {
		// TODO Auto-generated method stub
		return efileDao.findById(id);
	}

	public List<Efile> findByProperty(String propertyName, Object value) {
		// TODO Auto-generated method stub
		return efileDao.findByProperty(propertyName, value);
	}

	public void save(Efile transientInstance) {
		//			id= udao.save(transientInstance);
		efileDao.save(transientInstance);
	}

//	public void delete(String propertyName, Object value) {
//		efileDao.delete(propertyName, value);
//	}
	
	public List findByLimit(int begin, int number, String property, Object value){
		return efileDao.findByLimit(begin, number, property, value);
	}
	
}
